export default {
    namespaced: true,
    state: { 
        goodsCount: 2 
    },
    mutations: {
        increment (state) {
            console.log('goods increment')
            // 这里的 `state` 对象是模块的局部状态
            state.goodsCount ++
        }
    },

    getters: {
        doubleCount (state) {
            return state.goodsCount * 2
        }
    }
}